<?php echo $this->doctype('XHTML1_STRICT'); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo Bootstrap::$registry->config->meta->language ?>" lang="<?php echo Bootstrap::$registry->config->meta->language ?>">
<head>
    <?php echo $this->headMeta(); ?>
    <title><?php echo $this->escape($this->title) ?></title>
    <?php echo $this->headLink(); ?>
    <?php echo $this->headScript(); ?>
</head>
<body>
	<div class="container">
		<div id="headerbar" class="block span-24 last">
			<p><?php echo $this->layout()->headerbar ?></p>
		</div>
		<?php if(!EICms_Auth::getInstance()->isGuest()): ?>
		<div id="userbar" class="block span-24 last">
			<span><?php echo EICMS_Translate::_('userloggedin') . ': ' . ucfirst(EICms_Auth::getInstance()->getIdentity()->name) ?></span>
			<span><a href="<?php echo EICms_Url::get('auth','logout'); ?>"><?php echo EICms_Translate::_('exit'); ?></a></span>
		</div>
		<?php else: ?>
		<div id="userbar" class="block span-24 last">
			<span><a href="<?php echo EICms_Url::get('auth'); ?>"><?php echo EICms_Translate::_('login'); ?></a></span>
		</div>
		<?php endif; ?>
		<div id="leftbar" class="block span-4">
			<p><?php echo $this->layout()->leftbar ?></p>
		</div>
		<div id="contentspace" class="block span-16">
			<p><?php echo $this->layout()->content ?></p>
		</div>
		<div id="rightbar" class="block span-4 last">
			<p><?php echo $this->layout()->rightbar ?></p>
		</div>
		<div id="bottombar" class="block span-24 last">
			<p><?php echo $this->layout()->bottombar ?></p>
		</div>
	</div>
</body>
</html>
